﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
</head>
<body>
    <div id="header">
        <div style="position: absolute; float: right; display:block;">
            @if (Request.IsAuthenticated)
            {
                <text>Welcome <strong>@User.Identity.Name</strong>! [ @Html.ActionLink("Log Off", "LogOff", "Account")
                ]</text>
            }
            else
            {
                @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
            }
        </div>
        <img src="@Url.Content("~/Content/Imgs/Logo.png")" style="display: inline; height: 128px;" onclick="window.location = '@Url.Action("Index", "Home")'"/>
        <p>Come to bright side, Luk</p>
            
    </div>
    <div id="main">
    @if (TempData["Message"] != null && !((string)TempData["Message"]).IsEmpty())
    {
        <h3 class = "message">@ViewBag.Message</h3>
    }
        @RenderBody()
    </div>
    <div id="footer">
        <h4>
             Tester v0.0.2 (c) IEEE1394
        </h4>
    </div>
</body>
</html>
